import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/wms/stock/list',
    method: 'post',
    data: data
  })
}
export function materialClassify(data) {
  return request({
    url: '/wms/type/list',
    method: 'post',
    data: data
  })
}
export function Materiallist(data) {
  return request({
    url: '/wms/stock/listV2',
    method: 'post',
    data: data
  })
}
export function getInfo(data) {
  return request({
    url: '/wms/stock/' + data,
    method: 'get'
  })
}

export function getInfo2(data1, data2) {
  return request({
    url: '/wms/stock/' + data1 + '/' + data2,
    method: 'get'
  })
}

export function listDetails(data) {
  return request({
    url: '/wms/stock/listDetails',
    method: 'post',
    data: data
  })
}
export function exportList(data) {
  return request({
    url: '/wms/stock/listForExport',
    method: 'post',
    data: data
  })
}

export function getMaterialInfo(data) {
  return request({
    url: '/wms/stock/material/' + data,
    method: 'get'
  })
}

export function getMaterialInfo2(data1, data2) {
  return request({
    url: '/wms/stock/material/' + data1 + '/' + data2,
    method: 'get'
  })
}
